package top.tangyh.lamp.common.constant;


public class CommonConstant {
    /**
     * 分页查询
     * */
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 每页显示记录数
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序方式
     */
    public static final String ORDER = "order";
    /**
     * 升序
     */
    public static final String ASC = "asc";

    /**
     * 是
     */
    public final static int YES_NUMBER = 1;

    /**
     * 否
     */
    public final static int NO_NUMBER = 0;

    /**
     * 病区类型
     */
    public final static int WARD_TYPE = 1;

    /**
     * 科室类型
     */
    public final static int DEPT_TYPE = 0;

    /**
     * redis生命周期
     */
    public final static Integer TIME_INTERVAL = 5;

    /**
     * 默认接收的tpoic
     */
    public static final String TOPIC_KEY = "mqtt_receivedTopic";

    /**
     * IP 地址解析
     */
    /**
     * 用于IP定位转换
     */
    public static final String REGION = "内网IP|内网IP";
    /**
     * win 系统
     */
    public static final String WIN = "win";

    /**
     * mac 系统
     */
    public static final String MAC = "mac";

    /**
     * 常用接口
     */
    public static class Url {
        // IP归属地查询
        public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
    }

    /**
     * 设备ip关联设备识别号
     */
    public static final String BIND_IP_EQUIDENT = "david:ip:equIdent:";
    /**
     * 病人设备绑定路径
     */
    public static final String BIND_EQU_PATIENT = "david:bind:";
    public static final String BIND_EQU_HOSPITALNUMBER= "david:bind:hospitalnumber";
    /**
     * 病人基本信息
     */
    public static final String PATIENT_IDENTIFIER_INFO = "david:patient:ident:info:";
    /**
     * 用户关联病人路径
     */
    public static final String BIND_USER_PATIENT = "david:user:patient:";

    /**
     * ip未找到equIdent缓存路径
     */
    public static final String IP_UNKNOW = "david:ip:unknow:";
    /**
     * 实时数据路径
     */
    public static final String UNIFIED_DATA_REDIS_PREFIX = "david:unifiedData:";
    /**
     * 用药方法redis前缀
     */
    public static final String ROUTE_REDIS_PREFIX = "david:route:";
    /**
     * 用药方法的入量统计分类 鼻饲
     */
    public static final String ROUTE_BI_SI = "鼻饲";
    /**
     * 用药方法的入量统计分类 微泵
     */
    public static final String ROUTE_WEI_BENG = "微泵";
    /**
     * 用药方法的入量统计分类 输液
     */
    public static final String ROUTE_SHU_YE = "输液";
    /**
     * 初始化分批次写入病人数据
     */
    public static final long PATIENT_LIMIT = 1000;

    /**
     * 通用排班A
     */
    public static final String WORK_PLAN_A = "A班";

    /**
     * 通用排班P
     */
    public static final String WORK_PLAN_P = "P班";

    /**
     * 通用排班N
     */
    public static final String WORK_PLAN_N = "N班";

    /**
     * 评估评分暂存时间（秒）
     */
    public static final long PGPF_SAVE_SECOND = 21600;

    /**
     * 文书评分暂存时间（秒）
     */
    public static final long DOC_SAVE_SECOND = 43200;
}
